package com.i.template.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lewis
 * @type class
 * @description
 * @since 2024/7/25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessException extends RuntimeException{
    private Integer code;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Integer code) {
        super(message);
        this.code = code;
    }
}
